package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Users extends Model<Users> {

    private static final long serialVersionUID=1L;

    /**
     * 会员id
     */
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 会员名称
     */
    private String userName;

    /**
     * 会员手机号码(未授权空)
     */
    private String userMobile;

    /**
     * 性别 female 女 male男 none其他
     */
    private String userSex;

    /**
     * 用户积分
     */
    private Integer userJf;

    /**
     * 用户状态online-在读-before历史-latent
     */
    private String userShowStatus;

    /**
     * 号码授权时间
     */
    private Date authTime;

    /**
     * 用户头像
     */
    private String userIcon;

    /**
     * 生日
     */
    private String birthDate;

    /**
     * 状态1-启用0-禁用
     */
    private Integer status;

    /**
     * 加入时间
     */
    private Date createTime;


    public static final String ID = "id";

    public static final String USER_NAME = "user_name";

    public static final String USER_MOBILE = "user_mobile";

    public static final String USER_SEX = "user_sex";

    public static final String USER_JF = "user_jf";

    public static final String USER_SHOW_STATUS = "user_show_status";

    public static final String AUTH_TIME = "auth_time";

    public static final String USER_ICON = "user_icon";

    public static final String BIRTH_DATE = "birth_date";

    public static final String STATUS = "status";

    public static final String CREATE_TIME = "create_time";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
